package com.example.badyloans.servlet;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.example.badyloans.pojo.TRepaymentDetail;
import com.example.badyloans.dao.TRepaymentDetailMapper;
import com.example.badyloans.servlet.TRepaymentDetailService;

import java.util.List;

@Service
public class TRepaymentDetailServiceImpl implements TRepaymentDetailService{

    @Resource
    private TRepaymentDetailMapper tRepaymentDetailMapper;

    @Override
    public int deleteByPrimaryKey(String id) {
        return tRepaymentDetailMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insertSelective(TRepaymentDetail record) {
        return tRepaymentDetailMapper.insertSelective(record);
    }

    @Override
    public TRepaymentDetail selectByPrimaryKey(String id) {
        return tRepaymentDetailMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<TRepaymentDetail> selectByPrimaryKey1(String userId,Integer currentPageNo,
                                                      Integer pageSize) {
        return tRepaymentDetailMapper.selectByPrimaryKey1(userId,currentPageNo,pageSize);
    }

    @Override
    public int count(String userId) {
        return tRepaymentDetailMapper.count(userId);
    }

    @Override
    public int updateByPrimaryKeySelective(TRepaymentDetail record) {
        return tRepaymentDetailMapper.updateByPrimaryKeySelective(record);
    }

}
